#include <QCoreApplication>
#include <iostream>
#include <cmath>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication e(argc, argv);
    cout<<"Vvedite katet a: ";
    int a;
    cin>>a;
    cout<<"Vvedite katet b: ";
    int b;
    cin>>b;
    double c=sqrt(a*a+b*b);
    cout<<"Gipotenuza c= "<<c<<", Perimetr = "<<a+b+c<<endl<<endl;
    return e.exec();
}
